package com.guli.eduService.client.service_order;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "service-order" , fallback = OrderFeignClient.class)
@Component
public interface OrderClient {

    @GetMapping("/edu/order/isBuyCourse/{memberId}/{courseId}")
    public Boolean isBuyCourse(@PathVariable String memberId , @PathVariable String courseId);
}
